package com.soup.lab.repository.dao;

import com.soup.lab.repository.model.Fruit;
import com.soup.lab.repository.model.FruitCriteria;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

public interface FruitMapper {
    long countByExample(FruitCriteria example);

    int deleteByExample(FruitCriteria example);

    int deleteByPrimaryKey(Integer id);

    int insertBatch(@Param("records") List<Fruit> records);

    int insert(Fruit record);

    int insertSelectiveBatch(@Param("records") List<Fruit> records);

    int insertSelective(Fruit record);

    List<Fruit> selectByExampleWithRowbounds(FruitCriteria example, RowBounds rowBounds);

    List<Fruit> selectByExample(FruitCriteria example);

    Fruit selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Fruit record, @Param("example") FruitCriteria example);

    int updateByExample(@Param("record") Fruit record, @Param("example") FruitCriteria example);

    int updateBatchByPrimaryKeySelective(@Param("records") List<Fruit> records);

    int updateByPrimaryKeySelective(Fruit record);

    int updateByPrimaryKey(Fruit record);
}